'use strict';

const Controller = require('../core/base_controller');

class Cs extends Controller {


	async list () {

		const { ctx, app } = this;
 
		const result = await ctx.service.cs.list();
		this.success(result);
	}


	async update () {

		const { ctx, app } = this;

		const { para } = ctx.request.body;
 
		const result = await ctx.service.cs.update(para);
		this.success(result);
	}


	async info () {
		const { ctx, app } = this;

		const { id } = ctx.request.query;
 
		const result = await ctx.service.cs.info(id);
		this.success(result);
	}
}

module.exports = Cs;
